還記得永豐有回傳匯款成功的服務嗎?因為要架設實體SERVER讓永豐API呼叫,這次暫時不進行了!
但該規劃的流程還是繼續做下去!
"OrderCreateList": [
{
"OrderNo": "A_201214_1633746554.80407",
"Amount": 200100,
"PayType": "A",
"Param1": "D07-1",
"Param2": "201214",
"AtmPayNo": "99922530179104",
"ExpireDate": "202110092359",
"Paid": "N",
"id": 1
}]
sendRecode_POST_message={
"OrderNo": decrypt_dist["OrderNo"],
"Amount": decrypt_dist["Amount"],
"PayType": decrypt_dist["PayType"],
"Param1": decrypt_dist["Param1"],
"Param2": decrypt_dist["Param2"],
"AtmPayNo": decrypt_dist["ATMParam"]["AtmPayNo"],
"ExpireDate":str(lastDate).replace("-",""),
"Paid":"N"
}
print("測試@@@@@@@@ ",sendRecode_POST_message)
createRecode_link = 'http://localhost:3000/OrderCreateList'
r = requests.post(url = createRecode_link, json = sendRecode_POST_message )
print('Recode status => ',r.status_code)
print('Recode_json => ',r.json())
r.close()
點選交易建立
可以看到fastpai的log寫到
回到json server
也可以檢視到OrderCreateList已經新增一筆
{
"OrderNo": "A_202112_1634142678.938398",
"Amount": 200000,
"PayType": "A",
"Param1": "D07-1",
"Param2": "202112",
"AtmPayNo": "99922530180298",
"ExpireDate": "20211015",
"Paid": "N",
"id": 4
}